package com.tx.blog.user.service;

import com.tx.blog.user.vo.UserVo;

import java.util.List;

/**
 * @author tx
 * @description
 * @date  2019/4/29 14:11
 * @param  * @Param: null
 * @return
**/
public interface IUserService {

    /**
     * @author tx
     * @description  用户注册
     * @date  2019/4/29 14:08
     * @param  * @Param: user
     * @return boolean
    **/
    boolean registerUser(UserVo user);

    /**
     * @author tx
     * @description  用户登录
     * @date  2019/4/29 14:08
     * @param  * @Param: user
     * @return com.tx.blog.user.vo.UserVo
     **/
    UserVo findUserByUserName(UserVo user);

    /**
     * 查找用户
     * @param userId 当前登录的用户id
     * @return
     */
    UserVo findUserByUserId(String userId);

    /**
     * @author tx
     * @description  查找所有用户
     * @date  2019/5/16 14:28
     * @param  * @Param: 
     * @return java.util.List<com.tx.blog.user.vo.UserVo>
    **/
    List<UserVo> findUsers();
}
